namespace Code1
{
    using System;
    using System.Text;
    using System.Web;
    using System.Data;
    using System.ComponentModel;
    using MySql.Data.MySqlClient;
    using System.Collections;
    using CodeFx;

    public static partial class MailDTO
    {
        [DataObjectMethodAttribute(DataObjectMethodType.Insert, true)]
        public static void CustomInsert(MailDAL dataObject)
        {
            if (dataObject == null)
                throw new ArgumentNullException("dataObject");

            dataObject.Date = DateTime.UtcNow;

            Insert(dataObject);
        }
    }
}